from testModel.test_car_model.CarModel import CarModel
import socket


def Car(file_name: str):
    traj = open(file_name, 'r').readlines()
    first_point = traj[0].split(' ')
    car = CarModel(float(first_point[0]), float(first_point[1]), float(first_point[2]), float(first_point[3]))
    # 创建一个socket
    tcp_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    # 链接服务器
    tcp_socket.connect(("127.0.0.1", 8080))






